﻿namespace HuaWei.CommComp
{
    using DevExpress.XtraEditors;
    using HuaWei.CommClass;
    using HuaWei.Windows.Forms;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FrmKHXX : Form
    {
        private Button btnCancel;
        private Button btnOK;
        private TextBox edtDWQC;
        private TextBox edtDZYJ;
        private TextBox edtLXDH;
        private TextBox edtQQHM;
        private GroupBox groupBox1;
        private IContainer icontainer = null;
        private Label label5;
        private LabelControl labelControl1;
        private LabelControl labelControl2;
        private LabelControl labelControl3;
        private LabelControl labelControl4;
        private Panel panel1;

        public FrmKHXX()
        {
            this.InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.edtDWQC.Text.Trim().Equals("") || this.edtLXDH.Text.Trim().Equals(""))
            {
                MsgBox.ShowMsg("单位全称及联系电话不能为空,请重新填写后继续此操作。");
            }
            else if (this.method())
            {
                base.DialogResult = System.Windows.Forms.DialogResult.OK;
            }
        }

        public int CheckRegInfo(Form flash)
        {
            GParams.YXTS = "0";
            return 0;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        private void euwcnUwWn(object sender, EventArgs e)
        {
            base.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void InitializeComponent()
        {
            this.labelControl1 = new LabelControl();
            this.labelControl2 = new LabelControl();
            this.labelControl3 = new LabelControl();
            this.labelControl4 = new LabelControl();
            this.edtDWQC = new TextBox();
            this.edtLXDH = new TextBox();
            this.edtDZYJ = new TextBox();
            this.edtQQHM = new TextBox();
            this.panel1 = new Panel();
            this.label5 = new Label();
            this.btnCancel = new Button();
            this.btnOK = new Button();
            this.groupBox1 = new GroupBox();
            this.panel1.SuspendLayout();
            this.groupBox1.SuspendLayout();
            base.SuspendLayout();
            this.labelControl1.Location = new Point(6, 20);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x37, 14);
            this.labelControl1.TabIndex = 3;
            this.labelControl1.Text = "单位全称*";
            this.labelControl2.Location = new Point(6, 0x37);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(0x37, 14);
            this.labelControl2.TabIndex = 4;
            this.labelControl2.Text = "联系电话*";
            this.labelControl3.Location = new Point(6, 0x57);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(0x30, 14);
            this.labelControl3.TabIndex = 5;
            this.labelControl3.Text = "电子邮件";
            this.labelControl4.Location = new Point(6, 0x77);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new Size(0x2a, 14);
            this.labelControl4.TabIndex = 6;
            this.labelControl4.Text = "QQ号码";
            this.edtDWQC.Location = new Point(0x47, 0x13);
            this.edtDWQC.Name = "edtDWQC";
            this.edtDWQC.Size = new Size(390, 0x15);
            this.edtDWQC.TabIndex = 7;
            this.edtLXDH.Location = new Point(0x47, 0x36);
            this.edtLXDH.Name = "edtLXDH";
            this.edtLXDH.Size = new Size(390, 0x15);
            this.edtLXDH.TabIndex = 8;
            this.edtDZYJ.Location = new Point(0x47, 0x56);
            this.edtDZYJ.Name = "edtDZYJ";
            this.edtDZYJ.Size = new Size(390, 0x15);
            this.edtDZYJ.TabIndex = 9;
            this.edtQQHM.Location = new Point(0x47, 0x77);
            this.edtQQHM.Name = "edtQQHM";
            this.edtQQHM.Size = new Size(390, 0x15);
            this.edtQQHM.TabIndex = 10;
            this.panel1.BackColor = SystemColors.Control;
            this.panel1.Controls.Add(this.label5);
            this.panel1.Controls.Add(this.btnCancel);
            this.panel1.Controls.Add(this.btnOK);
            this.panel1.Dock = DockStyle.Bottom;
            this.panel1.Location = new Point(0, 0x99);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x1e1, 0x30);
            this.panel1.TabIndex = 0x17;
            this.label5.BorderStyle = BorderStyle.Fixed3D;
            this.label5.Dock = DockStyle.Top;
            this.label5.Location = new Point(0, 0);
            this.label5.Name = "label5";
            this.label5.Size = new Size(0x1e1, 2);
            this.label5.TabIndex = 11;
            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Location = new Point(0x184, 13);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 1;
            this.btnCancel.Text = "取消";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new EventHandler(this.euwcnUwWn);
            this.btnOK.Location = new Point(0x133, 13);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new Size(0x4b, 0x17);
            this.btnOK.TabIndex = 0;
            this.btnOK.Text = "确定(&O)";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click += new EventHandler(this.btnOK_Click);
            this.groupBox1.Controls.Add(this.labelControl1);
            this.groupBox1.Controls.Add(this.labelControl2);
            this.groupBox1.Controls.Add(this.edtQQHM);
            this.groupBox1.Controls.Add(this.labelControl3);
            this.groupBox1.Controls.Add(this.edtDZYJ);
            this.groupBox1.Controls.Add(this.labelControl4);
            this.groupBox1.Controls.Add(this.edtLXDH);
            this.groupBox1.Controls.Add(this.edtDWQC);
            this.groupBox1.Location = new Point(6, -2);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(470, 0x95);
            this.groupBox1.TabIndex = 0x18;
            this.groupBox1.TabStop = false;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x1e1, 0xc9);
            base.Controls.Add(this.groupBox1);
            base.Controls.Add(this.panel1);
            base.Name = "FrmKHXX";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "您正在使用学习版，学习期为90天";
            this.panel1.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            base.ResumeLayout(false);
        }

        private bool method()
        {
            return true;
        }
    }
}

